package co.yixiang.modules.order.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 后台创建订单
 */
@Data
public class BackstageCreateOrderParam implements Serializable {


    @ApiModelProperty(value = "用户ID")
    private Long uid;

    @ApiModelProperty(value = "优惠券ID")
    private Integer couponId;

    @Size(max = 200,message = "长度超过了限制")
    @ApiModelProperty(value = "订单备注")
    private String mark;

    @NotBlank(message="请选择支付方式")
    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "配送方式 1=快递 ，2-门店自取 3-物流配送")
    private Integer shippingType;

    /** 收货人姓名 或门店联系人 */
    private String realName;

    /** 收货人电话 */
    private String userPhone;

    /** 收货详细地址 */
    private String userAddress;

    @ApiModelProperty(value = "门店ID")
    private Integer storeId;

    private List<BackstageOrderGoodsParam> selectProductList;

}
